package com.s69.swaggerdemo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ResultVo<T> {
    private String code;
    private String mess;
    private T data;
    public static <T> ResultVo<T> success(String mess,T data){return new ResultVo<T>("2000",mess,data);}
    public static <T> ResultVo<T> error(String mess){return new ResultVo<T>("5000",mess,null);}
}
